#include <stdio.h>

int main()
{
    char arr[11];
    int i;
    while(scanf("%s",arr)!=EOF){
        for(i=0;arr[i]!='\0';i++){
            if(arr[i]=='1'||arr[i]=='3'||arr[i]=='5'
             ||arr[i]=='7'||arr[i]=='9') arr[i] = '1';
            else arr[i] = '0';
        }
        i = 0;
        while(arr[i] == '0') i++;
        printf("%s",&arr[i]);
    }

    return 0;
}
